package com.blb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * @author lvtian
 * @date 2023/1/4 19:02
 */
@TableName("w_goods")
public class Good {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String goodName;
    private String goodType;
    private String goodWeight;
    @TableLogic(value = "0" ,delval = "1")
    private Integer deleted;

    public Good(Integer id, String goodName, String goodType, String goodWeight) {
        this.id = id;
        this.goodName = goodName;
        this.goodType = goodType;
        this.goodWeight = goodWeight;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Good() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getGoodType() {
        return goodType;
    }

    public void setGoodType(String goodType) {
        this.goodType = goodType;
    }

    public String getGoodWeight() {
        return goodWeight;
    }

    public void setGoodWeight(String goodWeight) {
        this.goodWeight = goodWeight;
    }

    @Override
    public String toString() {
        return "Good{" +
                "id=" + id +
                ", goodName='" + goodName + '\'' +
                ", goodType='" + goodType + '\'' +
                ", goodWeight='" + goodWeight + '\'' +
                '}';
    }
}
